package uk.co.q3c.deplan.client.dao;

import uk.co.q3c.deplan.client.domain.DomainObject;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.googlecode.objectify.Key;

public interface DomainServiceAsync {

	<T extends DomainObject> void getObjectFromKey(Key<T> key,
			AsyncCallback<T> callback);

	<T extends DomainObject> void keyFor(T domainObject,
			AsyncCallback<Key<T>> callback);

}
